package com.ljf.finance.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 账户报表明细对象  finance_dat_account_report_detail
 *
 * @author LJF
 * @since 2024-12-07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("账户报表明细")
@EqualsAndHashCode(callSuper = true)
@TableName("finance_dat_account_report_detail")
public class FinanceDatAccountReportDetail extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link FinanceDatAccountReportDetail#COL_ID}
	 */
	@TableId(value="id", type= IdType.AUTO)
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: char(8)
	 * 注释: 编码
	 * {@link FinanceDatAccountReportDetail#COL_CODE}
	 */
	@TableField("code")
	@JsonProperty("code")
	@ApiModelProperty(value = "编码")
	private String code;

	/**
	 * Java类型: String
	 * 数据库类型: char(6)
	 * 注释: 类型编码
	 * {@link FinanceDatAccountReportDetail#COL_TYPE_CODE}
	 */
	@TableField("type_code")
	@JsonProperty("typeCode")
	@ApiModelProperty(value = "类型编码")
	private String typeCode;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(20)
	 * 注释: 名称
	 * {@link FinanceDatAccountReportDetail#COL_NAME}
	 */
	@TableField("name")
	@JsonProperty("name")
	@ApiModelProperty(value = "名称")
	private String name;

	/**
	 * Java类型: Integer
	 * 数据库类型: smallint unsigned
	 * 注释: 排序
	 * {@link FinanceDatAccountReportDetail#COL_SORT}
	 */
	@TableField("sort")
	@JsonProperty("sort")
	@ApiModelProperty(value = "排序")
	private Integer sort;


	/**
	 * ID
	 * {@link FinanceDatAccountReportDetail#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 编码
	 * {@link FinanceDatAccountReportDetail#code}
	 */
	public static final String COL_CODE = "code";
	/**
	 * 类型编码
	 * {@link FinanceDatAccountReportDetail#typeCode}
	 */
	public static final String COL_TYPE_CODE = "type_code";
	/**
	 * 名称
	 * {@link FinanceDatAccountReportDetail#name}
	 */
	public static final String COL_NAME = "name";
	/**
	 * 排序
	 * {@link FinanceDatAccountReportDetail#sort}
	 */
	public static final String COL_SORT = "sort";

}
